package com.example.springboot.controller;

import com.example.springboot.dto.ZYOfficialWebsiteReqDTO;
import com.example.springboot.service.HttpService;
import com.example.springboot.vo.ResultGWVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HttpController {
    @Autowired
    private HttpService httpService;
    @PostMapping("/testStringHttpPost")
    public ResultGWVO testStringHttpPost(@RequestBody ZYOfficialWebsiteReqDTO zyOfficialWebsiteReqDTO){
       return httpService.getHttpPost(zyOfficialWebsiteReqDTO);
    }
}
